package com.xuchaotong.returnval;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

@Slf4j
public class ReturnValTest {

    @Test
    public void testReturnVal(){
        String s = returnString();

        log.info(s);
    }


    private String returnString(){

        returnVoid();

        log.info("上面的方法返回了，我还在继续执行");

        return "Hello";
    }


    private void returnVoid(){
        return;
    }

}
